# -*- coding: utf-8 -*-
# @Author : llvyr
# @qq:994814645    
# @Time : 2021/12/25 11:00
from django.conf.urls import url, include
from django.urls import path
from cart.views import cart, add, delete, clear, change_one, order, order_submit

urlpatterns = [
    path('', cart, name="cart"),  # 购物车默认页面
    path('add/<int:id>/<int:num>', add, name='cart_add'),  # 添加一件商品进购物
    path('delete/<int:id>', delete, name='cart_delete'),  # 删除购物车中一个商品
    path('clear/', clear, name='cart_clear'),  # 清空购物车
    path('change_one/<int:id>/<int:num>', change_one, name='change_one'),  # 商品数量改变
    path('order/', order, name="order"),  # 订单
    path('order_submit/', order_submit, name="order_submit"),  # 订单提交
]
